

const {ccclass, property} = cc._decorator;

@ccclass
export default class SideCtrl extends cc.Component {


    onclickGoSide(){
        let tt = window['tt']
        tt.navigateToScene({
            scene: "sidebar",
            success: (res) => {
                console.log("navigate to scene success");
                // this.reward.active = true;
                // this.join.active = false;
                // this.close();
            },
            fail: (res) => {
                console.log("navigate to scene fail: ", res);
                // 跳转失败回调逻辑
            },
        });
    }

    onclickCloseBtn(){
        this.node.destroy();
    }
  
}
